package cn.lh.service;

import cn.lh.entity.dto.FileDto;
import cn.lh.entity.req.FileReq;
import cn.lh.entity.vo.FileVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 文件表 服务类
 * </p>
 *
 * @author linhong
 * @since 2023-12-22
 */
public interface FileService extends IService<FileDto> {

    String upload(MultipartFile uploadFile);

    void down(Integer fileId, HttpServletResponse response) throws Exception;

    PageInfo<FileVo> getList(FileReq req);

}
